import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * ClassName: Test_isElse
 * Package: PACKAGE_NAME
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-06-18
 * Time: 19:40
 */

public class Test_isElse {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int a = scanner.nextInt();

        if (a < 18){
            System.out.println("未成年");
        }else if (a < 28){
            System.out.println("成年");
        }else if (a < 38){
            System.out.println("不算太老");
        }else {
            System.out.println("老了");
        }

    }

}
